package org.starsource.forum.server.dao;

import java.util.Set;

import org.starsource.forum.client.exception.DatabaseException;
import org.starsource.forum.client.exception.MessageNotFoundException;
import org.starsource.forum.server.domain.Message;
import org.starsource.forum.server.domain.Session;
/**
 * @author james
 *
 */
public interface MessageDao {
	public void save(Message message) throws DatabaseException;
	public void update(Message message) throws DatabaseException;
	public void delete(Message message) throws DatabaseException;
	public void delete(Session session) throws DatabaseException;
	
	public Message getMessage(int id) throws MessageNotFoundException, DatabaseException;
	public Set<Message> getMessageSet(Session session) throws DatabaseException;
}
